home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 3_7.lha / 3_7 / 3_7dtst.c < prev    next >
Text File  |  1993-08-08  |  445b  |  22 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6.  
  7. oid* memcpy(void*, const void*, int);
  8.  
  9. har a[] = "abcdefghijklmnopqrstuvwxyz";
  10. har b[sizeof a];
  11.  
  12. ain()
  13.  
  14.    memcpy(b, a, sizeof a);
  15.    strcpy(a+3, "");
  16.    cout << "a=" << a << "\n";
  17.    memcpy(b, a, sizeof a);
  18.    strcpy(a+3, "QRSTUVWXYZ");
  19.    cout << "a=" << a << "\n";
  20.    return 0;
  21.  
  22.